package com.DeliveryProgram.www.po;


public class Menu {
    /**菜品的id*/
    private int id;
    /**菜品名称*/
    private  String name;
    /**菜品介绍*/
    private String introduce;
    /**菜品价格*/
    private double price;
    /**订单中记录菜品数量*/
    private  int mount;

    public Menu(String name,String introduce,double price){
        this.name=name;
        this.introduce=introduce;
        this.price=price;
    }

    public Menu(int id,String name,String introduce,double price) {
        this.id=id;
        this.name=name;
        this.introduce=introduce;
        this.price=price;
    }

    public Menu(int id,String name,int mount) {
        this.id=id;
        this.name=name;
        this.mount=mount;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getMount() {
        return mount;
    }

    public void setMount(int mount) {
        this.mount = mount;
    }

    public void addMount(){
        mount+=1;
    }
}
